﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace readnumber
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            bool bMinimize = false;

            Console.WriteLine("arguments:");
            foreach (string s in args)
            {
                Console.WriteLine(s);
                if (s.Trim() == "-m") bMinimize = true;
            }

            Form1 f1 = new Form1();
            if (bMinimize) f1.bMinimize = true;

            try
            {
                Application.Run(f1);
            }
            catch
            {
                ;
            }
        }
    }
}
